<?xml version='1.0' encoding='UTF-8' ?> 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core">

    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>Admin Easy Tickets</title>

        <link href="../resources/css/screen.css" type="text/css" rel="stylesheet" media="screen" title="default"/>



    </h:head>

    <h:body>
        <c:if test="#{sessionScope['userid']==null}">
            #{processDoLogin.init}
        </c:if>
        <f:view>
            <h:form id="testForm">
                <div id="top">
                    <ui:insert name="top">
                        <div id="page-top-outer">

                            <!-- Start: page-top -->
                            <div id="page-top">
                                <!-- start logo -->
                                <div id="logo">
                                    <a href=""><img src="../resources/images/shared/admin.gif" width="181" height="36" alt="" /></a>	


                                </div>
                                <!-- end logo -->

                                <!--  start top-search -->
                                <div id="top-search">

                                    <table border="0" cellpadding="0" cellspacing="0">
                                        <tr>
                                            <td><p:inputText id="txtName" value="#{searchBean.key}" styleClass="top-search-inp" required="false" requiredMessage="Enter String!"/>
                                                <h:messages for="txtName" id="ms" />
                                            </td>
                                            <td>
                                                <h:selectOneMenu value="#{searchBean.searchType}" styleClass="styledselect">
                                                    <f:selectItem itemLabel="Select One" itemValue="" />
                                                    <f:selectItem itemLabel="Admin" itemValue="admin"/>
                                                    <f:selectItem itemLabel="Customer" itemValue="customer"/>
                                                    <f:selectItem itemLabel="Event" itemValue="event"/>
                                                    <f:selectItem itemLabel="Category" itemValue="category"/>
                                                    <f:selectItem itemLabel="Tickets Summary" itemValue="ticketsSum"/>
                                                    <f:selectItem itemLabel="Tickets Category" itemValue="ticketsCat"/>
                                                    <f:selectItem itemLabel="Account" itemValue="account"/>
                                                    <f:selectItem itemLabel="About Us" itemValue="about"/>
                                                    <f:selectItem itemLabel="FAQ Us" itemValue="faq"/>
                                                    <f:selectItem itemLabel="Contact Us" itemValue="contact"/>

                                                </h:selectOneMenu>

                                            </td>
                                            <td>
                                                <h:commandButton action="#{searchBean.searchAllEasyTickets}" type="image" image="../resources/images/shared/top_search_btn.gif">
                                                    <f:param name="txtName" value="#{searchBean.key}"/>
                                                </h:commandButton>


                                            </td>
                                        </tr>
                                    </table>

                                </div>
                                <!--  end top-search -->
                                <div class="clear"></div>

                            </div>
                            <div class="nav-outer-repeat">
                                <!--  start nav-outer -->
                                <div class="nav-outer">

                                    <!-- start nav-right -->
                                    <div id="nav-right">
                                        <div class="showhide-account"></div>
                                        <c:if  test="#{sessionScope['userid'] != null}">
                                            <h3>Hello: ${sessionScope.userid}</h3>
                                        </c:if>
                                        <h:commandButton value="Logout" action="#{adminBean.logout}" type="image" image="../resources/images/login/logout.gif"></h:commandButton>
                                        <!--  start account-content -->

                                        <!--  end account-content -->

                                    </div>
                                    <!-- end nav-right -->


                                    <!--  start nav -->
                                    <div class="nav">
                                        <div class="table">

                                            <ul class="select">
                                                <li><a href="AdminHome.xhtml"><b>Admin</b></a><!--<![endif]-->
                                                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                                                    <div class="select_sub">
                                                        <ul class="sub">
                                                            <li><a href="AdminHome.xhtml">View All</a></li>
                                                            <li><a href="AboutUs.xhtml">About Us</a></li>
                                                            <li><a href="Contact.xhtml">Contact Us</a></li>
                                                            <li><a href="FAQs.xhtml">FAQ Us</a></li>
                                                        </ul>
                                                    </div>
                                                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                                                </li>
                                            </ul>

                                            <div class="nav-divider">&nbsp;</div>

                                            <ul class="select">
                                                <li><a href="Event.xhtml"><b>Events</b>
                                                        <!--[if IE 7]><!--></a><!--<![endif]-->
                                                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                                                    <div class="select_sub show">
                                                        <ul class="sub">
                                                            <li><a href="Event.xhtml">View all Events </a></li>
                                                            <li class="sub_show"><a href="AddEvent.xhtml">Add Events </a></li>

                                                        </ul>
                                                    </div>
                                                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                                                </li>
                                            </ul>



                                            <div class="nav-divider">&nbsp;</div>

                                            <ul class="select"><li><a href="Category.xhtml"><b>Categories</b><!--[if IE 7]><!--></a><!--<![endif]-->
                                                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                                                    <div class="select_sub">
                                                        <ul class="sub">
                                                            <li><a href="Category.xhtml">View All Categories</a></li>
                                                            <li><a href="AddCategory.xhtml">Add Categories</a></li>

                                                        </ul>
                                                    </div>
                                                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                                                </li>
                                            </ul>

                                            <div class="nav-divider">&nbsp;</div>

                                            <ul class="select">
                                                <li><a href="Customer.xhtml"><b>Customers</b></a><!--<![endif]-->
                                                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                                                    <div class="select_sub">
                                                        <ul class="sub">
                                                            <li><a href="Customer.xhtml">View All Customers</a></li>
                                                            <li><a href="Account.xhtml">Account</a></li>
                                                        </ul>
                                                    </div>
                                                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                                                </li>
                                            </ul>

                                            <div class="nav-divider">&nbsp;</div>

                                            <ul class="select">
                                                <li><a href="Tickets.xhtml"><b>Tickets</b></a><!--<![endif]-->
                                                    <!--[if lte IE 6]><table><tr><td><![endif]-->
                                                    <div class="select_sub">
                                                        <ul class="sub">
                                                            <li><a href="Tickets.xhtml">View Tickets</a></li>

                                                            <li><a href="TimeSet.xhtml">Time Set</a></li>
                                                            <li><a href="TicketsSummary.xhtml">Tickets Summary</a></li>
                                                            <li><a href="TicketsCategory.xhtml">Tickets Category</a></li>
                                                        </ul>
                                                    </div>
                                                    <!--[if lte IE 6]></td></tr></table></a><![endif]-->
                                                </li>
                                            </ul>


                                            <div class="clear"></div>
                                        </div>
                                        <div class="clear"></div>
                                    </div>
                                    <!--  start nav -->

                                </div>


                                <div class="clear"></div>
                                <!--  start nav-outer -->
                            </div>
                            <!-- End: page-top -->

                        </div>
                    </ui:insert>
                </div>

                <div id="content" class="center_content">



                    <div id="page-heading">
                        <h1>Administrator!</h1>
                    </div>
                    <!-- end page-heading -->




                    <ui:insert name="content">

                    </ui:insert>




                </div>

                <div id="bottom">
                    <ui:insert name="bottom">
                        <div id="footer">

                            <!-- <div id="footer-pad">&nbsp;</div> -->
                            <!--  start footer-left -->
                            <div id="footer-left">
	Admin Easy Tickets. Group 4_Fpt-Aptech. </div>
                            <!--  end footer-left -->
                            <div class="clear">&nbsp;</div>

                        </div>


                    </ui:insert>
                </div>
            </h:form>
        </f:view>
    </h:body>

</html>
